package lab02.Test09;

/**
 * Created by 星月 on 2017/10/25.
 */
public class Student {
    //属性：学号、班号、姓名、性别、年龄
    String number;
    String classid;
    String name;
    String gender;
    int age;
    //行为：获得学号、获得班号、获得性别、获得姓名、获得年龄、获得年龄
    public String getNumber(){
        return  number;
    }
    public String getClassid(){
        return classid;
    }
    public String getName(){
        return name;
    }
    public String getGender(){
        return  gender;
    }
    public int getAge(){
        return age;
    }
    public String toString(){
        return  "学号: "+getNumber()+"\n"+"班号："+getClassid()+"\n"+
                "姓名："+getName()+"\n"+"性别："+getGender()+"\n"+"年龄："+getAge()+"\n";
    }
}
